<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>按钮跳转示例</title>
    <script>
        function goToNewPage() {
            window.location.href = "www.baidu.com"; // 将"newPage.html"替换为你想要跳转的页面
        }
    </script>
</head>
<body>
    <button onclick="goToNewPage()">点击我跳转</button>
</body>
</html>
